//
//  ClusterChatWindowController.h
//  HiQ
//
//  Created by arvintan on 12-8-9.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import "ClusterChatSource.h"
#import "MyTableView.h"

@interface ClusterChatWindowController : NSWindowController<ClusterChatSourceDelegate>
{
    NSString *chatMessage;
    IBOutlet NSTextField *clusterName;
    IBOutlet NSImageView *clusterPhoto;
}

@property BOOL isShow;

@property IBOutlet MyTableView *tableClusterMember;
@property(strong) ClusterChatSource *clusterChatSource;


@property (nonatomic,strong) IBOutlet NSTextView *textChatMsg;
@property (nonatomic,strong) IBOutlet NSTextField *textSendMsg;
@property IBOutlet NSButton *buttonSendMsg;

-(void) initClusterChat:(Cluster*)cluster;
-(IBAction)sendChatMsg:(id)sender;
- (IBAction)viewMsgHistory:(id)sender;

-(void) setNamePohtoAndBgImage:(NSString*)bgImageName;
-(void) changeBackgroundImage:(NSNotification*)notification;
- (void) RefreshMemberList;

@end
